package MediaOnline.GUI;

/*
 * Writer: Đặng Vũ Tuấn
 * Last Modified: 10/08/2012
 */

import android.content.Context;
import android.media.MediaPlayer;
import android.net.Uri;
import android.util.AttributeSet;
import android.view.SurfaceView;
import android.view.View;
import android.view.View.OnClickListener;

public class nahuSurfaceView extends SurfaceView implements OnClickListener {
	
	private Context mContext;
	private boolean mEnable;
	private nahuMediaActivity mActivity;
	private MediaPlayer mMediaPlayer;
	private Uri mUri;
	
	//Khởi tạo	
	public nahuSurfaceView(Context context) {
		super(context);
		mContext = context;
		mEnable = true;
		mMediaPlayer = null;
	}
	
	public nahuSurfaceView(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);		
		mContext = context;
		mEnable = true;
		mMediaPlayer = null;
	}
	
	public nahuSurfaceView(Context context, AttributeSet attrs) {
		this(context, attrs, 0);		
	}

	//Activity
	public void setActivity(nahuMediaActivity mediaActivity) {
		mActivity = mediaActivity;
	}
	
	
	//Main Method
	private void openVideo(){
		
	}
	
	//Utilities
	public void toggleVideoControls() {
		
	}
	
	public void onClick(View view) {		
	}

}
